package cn.iocoder.yudao.module.agent.controller.admin.brokeragerecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.ExcelProperty;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;


/**
 * 代理人佣金记录 Excel VO
 *
 * @author 曹建伟
 */
@Data
public class AgentBrokerageRecordExcelVO {

    @ExcelProperty("编号")
    private Long id;

    @ExcelProperty("代理人会员编号")
    private Long agentUserId;

    @ExcelProperty("源会员编号")
    private Long sourceUserId;

    @ExcelProperty("业务id")
    private Integer bizId;

    @ExcelProperty("标题")
    private String title;

    @ExcelProperty("说明")
    private String description;

    @ExcelProperty("来源订单id")
    private Long orderId;

    @ExcelProperty("金额")
    private Integer price;

    @ExcelProperty("总佣金")
    private Integer brokerage;

    @ExcelProperty(value = "状态：0-待结算，1-已结算，2-已取消", converter = DictConvert.class)
    @DictFormat("agent_brokerage_status") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Byte status;

    @ExcelProperty("冻结时间（天）")
    private Integer frozenDays;

    @ExcelProperty("解冻时间")
    private LocalDateTime unfreezeTime;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
